/**
 * Created by shanyun.gu on 2017/3/20.
 */
define(['angular', "tpl/base/route/adminRoute","../../tpl/menagement/route/menagementRoute"],
    function (angular,adminRoute,menagementRoute) {
        var routes = {
            defaultRoute: "/login",
            routes: {
                "login": {
                    url: "/login",
                    templateUrl: "tpl/menagement/web/login.html",
                    dependencies: ['tpl/menagement/services/login.js'],
                    allowAnonymous: true
                }
            }
        };
        if (menagementRoute) {
            angular.forEach(menagementRoute.routes, function (route, path) {
                routes.routes[path] = route
            })
        }
        if (adminRoute) {
            angular.forEach(adminRoute.routes, function (route, path) {
                routes.routes[path] = route
            })
        }


        return routes;
    });